package com.yin.myproject.netty;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.LineBasedFrameDecoder;
import io.netty.handler.codec.string.StringDecoder;

/**
 * @author Eason
 * @create 2017-12-24 17:36
 **/
public abstract class ChildClientHandler extends ChannelInitializer<SocketChannel> {

    protected ChannelHandler channelAdapter;

    public ChildClientHandler(ChannelHandler channelAdapter) {
        this.channelAdapter = channelAdapter;
    }

    @Override
    protected abstract void initChannel(SocketChannel socketChannel) throws Exception;
}
